need to fix for nested block join