basic writing of entities