On the relationship between ground level enhancement and solar flare