*added* update method
*fixed* namespace error - wrong variable name