changing getResource to getResourceAsStream