small refactoring for access_denied method
travis integration