removing commented out code
removing the success and error methods
update. checking if data is not empty