remove $key as it is not used