remove mixed declarations