simplified stack push/pop