replaced sqrt with %