fixed prototype extends models to the particular extend