improved lua speed