simple pipe funtion