following a tutorial need to convert back if incorrect