removed $(which) reference