added electron density map function