get basic data function