still needs work on finding theta