modify stub to double (stub is deprecated)