use labs() for variables of type long instead of abs()