switched  around gradient