changed param to use List interface