removed unused check