closed araqne/issue#884. added mod() function