creating repeatable fields function