removed repeated class piece declaration