warmap added to functions