troubleshooting addElement