remove unnecessary char[]