typo in set_bnd
well it does something. that's a start