slight improvement in performance and save memory