removed unnec sql