added model and rest