moved commented lines check in getSection