working version, newEntry as array