fixed sqrt def