fix bug in bounds expander
i think this was ok
fix bug
fix inc deg bug
fix some calculation bugs