implemented checking heap pages for valid addr