bug fix, pulse train variables