added check for function upon changing the stack
0.0.4