pulse number now set correctly!