uploading version which attempts alignment and matrix padding