added support for rounds
fixed compilation error