Added return type to twee function