made things DRY... hopefully