added sensor event blocks