working sample function serve