debugging print removed
temp view added
better mapping function added