codes for pushing data