figure out where to stick logic