add start and end output