refactoried ideone api