update readability and fixed canvas drawing