change getting elements from list method