working on using scope in my factory