changed for crm 2011 compatible