added getting data from outlet