better optimisation of code