added function to forget objects that are out of range.