working without onInit