commented util, fixed resize