removed pos in data, fixed delete