extract to a method? :)