writed drow and load functions