bug fixed
using indexed seq instead of list