move new entry function to class