changing ci environment check
encapsulating cleanpopulate functionality into a method