fixed incorrect ordering of formal&stmt list