putting all ref elements into wells