updating sourced version. adding more asserts