added pry for debug