read state of top/bottom