FIX: fix subrouting which contains variables