fix display function, lambda function bug
implement vector