add header and fixed errors