small performance optimisation