the beginning of entity, tick and drawing