extract data to models from controller