change angle contstants to use potValues array