use double instead of deprecated stub