small code changes to encrypto