optimised code for excluding methods