Your code look alright.
What do you mean by “the same”?
Are both going down in the same manner, i.e. staying close to each other, or are both giving a constant value?
PS: I’ve edited your code for better readability. You can add code using three backticks`