bugfix, use main.round instead of round which is not defined