changed from implicit to explicit cast