renamed list to stack