updates to functions, portfolio