updated
added left, rigth start writing function