method to change char[] to int[] added