some minor changes to heap