now everything runs as intended