added logic to readBaordCell