modified update library to handle updates and added remove object