learnt and implemented check-= function
learnt and implemented check-= function