change syntax for one liners of code