moved parameterlist before function call generation to properly push the params to the stack before call is generated