various changes done to make set anngle work