setting flag to false if conversion fails