added angle function