draw arc method working correctly