update entry logic