Maybe it is predetermined but because we are living it for the first time in this life on earth, it doesn't matter anyway. However, we have freewill to do things that will change the world for the better and leave behind a legacy.