removed redundant nsnotificationcenter code