seatsr problem solved

need to check for border cases