made the code compile on Release configuration