removing unnec sql again