refine structure ; smarty similar tested