changed function 'theta.h' to 'theta' to avoid conflict with pegas