truncating e function working