prototype cleanup