attempts at fixing stack/unstack/push/pop