mnas: redo if statement to reduce lines