mystack_8_1: neater code