refactor the check for comm_pref; remove rem statements