make code more efficient