added abs scalar function