refine with add isDigtal method