better init
fix #2