simplifying and getting things on 1 line