worked on ogin.c