hex-codes are generated correctly now