remove mixed code/declarations