made the method more readable