created code for value lists, few fixes