removed log statement, changed backticks to single quotes
refactored/cleaned up a bit