refactored first method to be more concise