implemented gradient x, isn't used yet