implmented drawing and map (have not tested yet)