fix stack so that the current item is found instead of always the first item
')' needs to be able to close symbols and lists at the same time, could probably be more elegant at some point