fixed delete into delete []