dictionary creation now in function
fix conflict + func