need to pass model to typeof