made different assignment chaining (function and variable) work