made agelist function as a que