work around swift compiler confusion