add native functions
(interPred) clean code