added hip code; mostly copied from p50 acl
added hip