removing the list dependency