code improvements, resize component to 10