added where filter into sproc