removed parameter from update function because it always refers to that anyway