added theta callback