add COM selection inside to write inside the pde