new version with simpel initialization