removed object from function