fixed data passing to scope;