add function for correct polynom drawing