Trying to use absolute value, but it's not working