delete functionality still needs editing