change param name to str to match the README