string as functino err fixed