added abs check