prepared code for passing-mode. this will allow fast keyword detection