now code works with both BC types in a single run