error int topv, changed to tan to atan