put strlen in write parameters