made angle function static