a cleaner way to lookup operators