removes borders, fixes masked visibility