start of angle code