$val is int ;)