added case to map lookup when map is empty