minor fix of execution order; Logical Error still remains