scope data not defined