added findAngle to shared_fuctions