chart now clears succesfully