added sensor stuff