code performance is improved (finished)