generic method to return next field id in the process of looking the field to move on