bug fixes for deletions

deletion no longer calls resultToArray function(was causing errors, even
though deletion was successful)