htoi implemented