changed to use model clone