implemented 'at_entry' callback