fixing sub init