input paramters for density munging and cleanup of implementation