methods return values, fix e vs fe bug for small input