attempts to get optimise to work