added the push function after user input