Treatment of hard-core in shell model calculations