remove unnecessary map lookup