more logic to add entries