receive method has been added.