test draw code : code not working