added hex.pl
fixed hex.pl