started to define dto for rest