added convert from 4 chars into int