makes all the conditions as comments, and add ternary operatores to reduce  the code to one line