bug, wrong variables, mapping