added "from" to integrate method