generate method, prefix construct
no use anymore