updated main func spec
updated main func spec