added chaining capabilities to functions that were not currently returning anything