improved blockdesigns code