implemented grid system