use get Length sync