implemented basic mapping of slots to stack