added variable height and width