make the start and stop functions