solved e,f,g + de-duplicate