changed zero-padding to just do the padded edges (instead of entire padded_in)