simple lis implemention, needs debugging