create new entry function extracted