consolidate method body to one line