all stuff is now saved
error handling and comments