put logic on one line, to limit script length