changed atop mempty to id