refactored method delete into remove
changed some logic in running object