removed the px from barpadding variable