added constructor and wrap for functionality