code reduce fix