added safety check
test log
stupid fix