refatorada interface