changed some puts to deletes