made main a function