improved code efficiency