Type check added for list