code refactar