added third function
updated return info