fix a possible issue is pry function