assoc works for small maps
fixed a bug in assoc