added method to get element at