change func call to be part of statement