you're repeating this a lot, can you try to DRY it out? (DRY = don't repeat yourself)