trimWisgets method deprecated now