fixes some alignment issues