Created loop for width

Created loop for width