take hex as input