optimize for just in time learning