remove padding and scaling issues