final version of blockMin after debug