luke fixing my horrible code