fix as suggested by caitp