rebuilding model associations