adding preprocessor directive to interrupt method