Helperfunctions and world var AMD