made heat map dynamic