add hittest routine