commenting out line causing null pointer exception