corrected initialization and dependencies