return outside callback