added constatnt and redirect