add push method to the input