now everything works as expected