removed width parsing duplication