merged multi similiar case statements to one line