fixed problem with angles