adding new code on modelling dialog using a real scale