bit of extra checking