application crashes on this line. use tests to debug