fix postion of function read