removed clearRect call