tested ; syntax in function