prelaod metadata in model