added some register element stuff