starting to implement stack selection