reworked save maps function