widget type defining - removed sys warning