minor performance optimisation