front sensor!!!!
merged code