closing input stream added
closing streams added