delete methods and puts from file