fixed 'compile' function

removed name expansion