generalize static model method to allow getting top/bottom x