use SAFE_RELEASE to make code cleaner