not checking for nil hrsp when error occurs caused panic