removed xAtCol, fixed several bugs.