added 3.5inch support and fixed a small clearing bug