testing individual functions