initialise ok to false