setting list in constructor