tweaking, but need to look at how to assign BCs.