tryin to get function together