implemented grid