adding the cast to get rid of the warning