used model and collection. collection still has bug