added reindex function + bug in accepting image highlight