changed function declaration to match style