implemented getting elements