added pretty marginal delete function that is now broken ;(