drawing and loading from file updated