added display info function