fixed init function call