moved to stack_array
fixed pop bug