condensed code

via Frank Troglauer Jr's input