removed pulse variable