added display functionality