use case insted of elseif