heap fast prototype