first working version of fields