added colom , row detection