improve current stack insertion