freed block on enter: function added for freePrevBlock to avoid double
code