works as originally intended now