end must not be less than start in metadata