avoid warning assignment discards const qualifier