add len in felix funtions