functions reorderd, added missing letter to declaration