returning available stockids func. added