using constants instead of local instances