constants removed for rows and cols from main