refactors a method to basically a one-liner