one lining functions
adding profile trait for timing