fixed that stupid char array problem