function for dynamizing non struct maps