change to DynamicModel
add phpdoc