remove debug output
fixed bug of array