debugging GatherBlock
fixed bug in comparison function for GatherBlock