removed build() function