remove usage of Hash.delete; closes issue 57