attempt to avoid memory error

error fixed bout no output is given