add body to addElement method