Change the operate function, working fine..