added casting stuff