yarn methods functioning