implemented clear which wipes the profile