added comments on seg fault