add indexing and push! for elements