corrected invalid stack pop issue but need to also fix array copy and dealoc value in case of statement calls