small optimations.