added wrapper functions to get element and size