partially implemented padding. haven't tested yet but want to save my work
Further work on padding