updates to functinos