make the code faster