edited for Arxiv submission