removed pry and require
changed redirect