made ability.rb work correctly