moved get_angles to housekeeping