clir function added