removed the warnings

Imported reflective calls to avoid warning during compilation