push function swapied some values to make it look more logical