revert moving gradient type into class