fix input validation
adapt theta before commit