cases for default params and functype added and solved