added variable passing mechanism in basic moduel