added receive method to transform client