added abs and transpose