added clears in code