fixed insert method issues
fixed insert method issues