getting rid of compile warnings

replacing use of mock with double