make calculation faster