implemented static layer generation

check size