change add/get elements method