implemented functionality for changing methods