added nxtosek code