add testing & deref