modified send and recv to writen and readn