added constinants

added constinants to the function