added function to check column 9