cleanup
add xs atan