use doubles, getAttributes & other minor stuff