example: DRY up a bit