refactored
pry is no more needed