compiles subroutine calls correctly