fixed init function leftovers