moved opacity initiation