batch attribute length check implemented