update gradient set angle function