delete RGB func