bug in init()ialization fixed