correctly access element