add prepJson method to model