new logic in media app