writing conditions in argument is not proper coding. instead move into a variable