implemented nick's starter code for pushing. seems to work