new feature to delay execution between parts
code tidy-up