bug in write in