sampling frequency taken from user