edited angle calculation
edited angle calculation