cleaning markup file