edit to compile for ubuntu linux