rename function to avoid exisiting constructor name error. Fixes issues #6