inlined getSign and added a comment, see #131