changes + added new getElementID function