changed freezed into a promise