edited start and end regel