properly formatted func