adding some complex function in the model