use tryJust to simplify code