speed up geting width