fixed dot bug , the checkDot did not check the first element
checkOperation implemented