make functions in go style(two return vars like data and bool result)