updated model
implement array access on models