added a head and fixed mistake