fixed head and implemented grid