added a baseline and max offset for anlog samples