using sampling instead of single reading
fixing method name