implememted writing boundary position