new attempt using padding