usign double instead of stub to avoid deprecation