setting up to rewrite this code