improved list performance
fixed compile errors