Remove pad function. Fix syntax