optimize: remove mod