method create_element added (not working properly yet)