added relative size functionality