referenced https://github.com/mikeric/rivets/issues/185 in code