changed function names to godoc format