removed dependency on $(body). Can be checked externally