removing reflection warnings