as suggested, I would strongly suggest not using the frame but using a dictionnary as argument