completed Extracting Helper Methods