make the method in profile.rb nice