added subroutines for manually assigning blocks