added angle from origin to uc code