adds unshift code for MethodSource