adding onDealloc method to the public interface