changing from visibility to class