Minor change in draw function