changed type of gradient