adding abs, cleaning up X