started to incorporated test pulse code