updated to output angles