removed unused functinos