Problems solved! more ugly code