changing from intval() to (integer)