RATIONALE: Valproic acid may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth. It may also help cancer cells become more like normal cells, and grow and spread more slowly.